    <div id="list-product">
<?php
$items = $this->itemEachCat;
if (count($items) > 0) {
    $title = "";
    foreach($items as $item):
?>
<?php
    if ($title !=$item->admin_title) {
        if ($title != "") {
?>
                    </td>
                    <td class="centerright"></td>
                </tr>
            </table>
        </div>
        <div class="footer">
            <div class="footerleft">
            </div>
            <div >
            </div>
            <div class="footerright">
            </div>
        </div>

<?php
        }
?>
        <div class="header">
            <div class="headerleft">
            </div>
            <div class="headertitle">
                        <a href="<?php echo BASE_URL;?>/?pid=<?php echo $item->category_id;?>">
                            <?=$item->admin_title?>
                        </a>
            </div>
            <div class="headerright">
            </div>
        </div>
        <div class="content">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td class="centerleft"></td>
                    <!--td class="centercontent" style="background:#a7d0f0;"-->
                    <td class="centercontent">
<?php
    } else {
?>
<?php
    }
    $title = $item->admin_title;
?>
<div>
                                    <?php
                                    if ($item['item_image']) {
                                    $path = pathinfo($item['item_image'], PATHINFO_DIRNAME);
                                    $fileName = pathinfo($item['item_image'], PATHINFO_BASENAME);
                                    ?>
                                    <img src="<?=ImageUtil::getImage($path,$fileName,200,200, 100,true)?>" class="border" align="left" style="margin:5px 10px;"></img>
                                    <?php
                                    }
                                    ?>
                                        
                        <a style="font-weight:bold;" href="<?php echo BASE_PATH . '/' . CURR_APP ?>/index/index/detail?id=<?php echo $item->item_id; ?>" class="itemtitle"><?=$item->item_title?></a><br>
                                        <p><?php echo $item->item_short_description;?></p>
                                    <div style="clear:both;"></div>
</div>

<?php
    endforeach;
}

?>
                    </td>
                    <td class="centerright"></td>
                </tr>
            </table>
        </div>
        <div class="footer">
            <div class="footerleft">
            </div>
            <div >
            </div>
            <div class="footerright">
            </div>
        </div>
</div>
